<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Header.ascx.cs" Inherits="Tathata.Web.Modules.HeaderControl" %>
<div class="logo">
    <table width="100%">
        <tr>
            <td style="text-align: left; vertical-align: top;">
                <a href="<%=Page.ResolveUrl("~/Default.aspx")%>">
                    <img src="<%=Page.ResolveUrl("~/images/logo.jpg")%>" /></a>
            </td>
            <td style="text-align: right; vertical-align: top;" runat="server" id="selectCurrencyBlock">
                <asp:DropDownList CssClass="dropDownLists" runat="server" ID="ddlCurrencies" runat="server"
                    AutoPostBack="true" OnSelectedIndexChanged="ddlCurrencies_OnSelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="text-align: right; vertical-align: top;" runat="server" id="selectLanguageBlock">
                <asp:DropDownList CssClass="dropDownLists" runat="server" ID="ddlLanguages" runat="server"
                    AutoPostBack="true" OnSelectedIndexChanged="ddlLanguages_OnSelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td style="text-align: right; vertical-align: top;">
                <asp:LoginView ID="topLoginView" runat="server">
                    <AnonymousTemplate>
                        <a href="<%=Page.ResolveUrl("~/Register.aspx")%>">
                            <%=GetLocaleResourceString("Common.Register")%></a> | <a href="<%=Page.ResolveUrl("~/Login.aspx")%>">
                                <%=GetLocaleResourceString("Common.Login")%></a>
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        <b>
                            <%=Page.User.Identity.Name %>!</b><br />
                        <a href="<%=Page.ResolveUrl("~/Logout.aspx")%>">
                            <%=GetLocaleResourceString("Common.Logout")%></a>
                    </LoggedInTemplate>
                </asp:LoginView>
                | <a href="<%=Page.ResolveUrl("~/ShoppingCart.aspx")%>">
                    <%=GetLocaleResourceString("Common.ShoppingCart")%></a>
                
                <% if (Page.User.IsInRole("Admin"))
                   { %>
                <br />
                <a href="<%=Page.ResolveUrl("~/Administration/Default.aspx")%>">
                    <%=GetLocaleResourceString("Common.Administration")%></a>
                <%} %>
                <br />
                <br />
                <span style="vertical-align: bottom;">
                    <asp:TextBox ID="txtSearchTerms" runat="server" Width="100px" />&nbsp;
                    <asp:Button runat="server" ID="btnSearch" OnClick="btnSearch_Click" Text="Search">
                    </asp:Button>
                </span>
            </td>
        </tr>
    </table>
</div>
<img src="<%=Page.ResolveUrl("~/images/h_sep.gif")%>" style="margin: 12px 0;" />